// pages/adress/adress.js
Page({
  data: {
    active:0,
    adress: [{ info: '未来国际商务大厦1楼1号', tel: '13594807017', name: '王洪强', id: '1', state: 1 }, { info: '未来国际商务大厦1楼1号-2', tel: '13594807017', name: '王洪强', id: '1', state: 1}]
  },
  chose:function(e){
    let index = e.currentTarget.dataset.index;
    var pages = getCurrentPages();
    var currPage = pages[pages.length - 1];
    var prevPage = pages[pages.length - 2];
    var data = this.data.adress;
    prevPage.setData({
      adress: data[index]
    })
    wx.navigateBack()
  },
  onLoad: function () {
  },    
  onReady: function () {
  }
})